	.arch armv6
	.eabi_attribute 27, 3
	.eabi_attribute 28, 1
	.fpu vfp
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 1
	.eabi_attribute 18, 4
	.file	"practica0.c"
	.section	.rodata
	.align	2
.LC0:
	.ascii	"agenda.dat\000"
	.align	2
.LC1:
	.ascii	"rt\000"
	.align	2
.LC2:
	.ascii	"Leyendo datos...\000"
	.align	2
.LC3:
	.ascii	"%hd %hd %hd\000"
	.align	2
.LC4:
	.ascii	"Leidos %d datos\000"
	.align	2
.LC5:
	.ascii	"\012\012  Agenda, version 0.01\012\000"
	.align	2
.LC6:
	.ascii	"Elija una opcion\000"
	.align	2
.LC7:
	.ascii	"1.- Nuevo dato\000"
	.align	2
.LC8:
	.ascii	"2.- Ver datos existentes\000"
	.align	2
.LC9:
	.ascii	"3.- Ver detalles de una persona\000"
	.align	2
.LC10:
	.ascii	"0.- Terminar\000"
	.align	2
.LC11:
	.ascii	"%d\000"
	.align	2
.LC12:
	.ascii	"A\361adiendo datos...\000"
	.align	2
.LC13:
	.ascii	"Introduce nombre: \000"
	.align	2
.LC14:
	.ascii	"Introduce direccion: \000"
	.align	2
.LC15:
	.ascii	"Introduce movil: \000"
	.align	2
.LC16:
	.ascii	"Introduce correo electronico: \000"
	.align	2
.LC17:
	.ascii	"Introduce dia de nacimiento: \000"
	.align	2
.LC18:
	.ascii	"%hd\000"
	.align	2
.LC19:
	.ascii	"Introduce mes de nacimiento: \000"
	.align	2
.LC20:
	.ascii	"Introduce a\361o de nacimiento: \000"
	.align	2
.LC21:
	.ascii	"Fichas existentes:\000"
	.align	2
.LC22:
	.ascii	"Nombre a buscar? \000"
	.align	2
.LC23:
	.ascii	"%hd %hd %hd\012\000"
	.align	2
.LC24:
	.ascii	"wt\000"
	.align	2
.LC25:
	.ascii	"Guardando datos...\000"
	.align	2
.LC26:
	.ascii	"%s\012\000"
	.align	2
.LC27:
	.ascii	"Terminado.\000"
	.text
	.align	2
	.global	main
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 23416
	@ frame_needed = 1, uses_anonymous_args = 0
	stmfd	sp!, {fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #23296
	sub	sp, sp, #128
	mvn	r3, #0
	str	r3, [fp, #-8]
	ldr	r0, .L28
	ldr	r1, .L28+4
	bl	fopen
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L2
	ldr	r0, .L28+8
	bl	puts
	b	.L3
.L14:
	sub	r3, fp, #23296
	sub	r3, r3, #4
	sub	r3, r3, #116
	mov	r0, r3
	mov	r1, #80
	ldr	r2, [fp, #-16]
	bl	fgets
	ldr	r0, [fp, #-16]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L4
	b	.L5
.L4:
	sub	r3, fp, #23296
	sub	r3, r3, #4
	sub	r3, r3, #116
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L6
	sub	r3, fp, #23296
	sub	r3, r3, #4
	sub	r3, r3, #116
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	sub	r2, fp, #20480
	sub	r2, r2, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-2932]
.L6:
	ldr	r3, [fp, #-8]
	add	r2, r3, #1
	sub	r3, fp, #23040
	sub	r3, r3, #4
	sub	r3, r3, #172
	mov	r1, #232
	mul	r2, r1, r2
	add	r2, r3, r2
	sub	r3, fp, #23296
	sub	r3, r3, #4
	sub	r3, r3, #116
	mov	r0, r2
	mov	r1, r3
	bl	strcpy
	sub	r3, fp, #23296
	sub	r3, r3, #4
	sub	r3, r3, #116
	mov	r0, r3
	mov	r1, #80
	ldr	r2, [fp, #-16]
	bl	fgets
	ldr	r0, [fp, #-16]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L7
	b	.L5
.L7:
	sub	r3, fp, #23296
	sub	r3, r3, #4
	sub	r3, r3, #116
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L8
	sub	r3, fp, #23296
	sub	r3, r3, #4
	sub	r3, r3, #116
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	sub	r2, fp, #20480
	sub	r2, r2, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-2932]
.L8:
	ldr	r3, [fp, #-8]
	add	r2, r3, #1
	sub	r3, fp, #23040
	sub	r3, r3, #4
	sub	r3, r3, #172
	mov	r1, #232
	mul	r2, r1, r2
	add	r2, r2, #80
	add	r3, r3, r2
	add	r2, r3, #1
	sub	r3, fp, #23296
	sub	r3, r3, #4
	sub	r3, r3, #116
	mov	r0, r2
	mov	r1, r3
	bl	strcpy
	sub	r3, fp, #23296
	sub	r3, r3, #4
	sub	r3, r3, #116
	mov	r0, r3
	mov	r1, #12
	ldr	r2, [fp, #-16]
	bl	fgets
	ldr	r0, [fp, #-16]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L9
	b	.L5
.L9:
	sub	r3, fp, #23296
	sub	r3, r3, #4
	sub	r3, r3, #116
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L10
	sub	r3, fp, #23296
	sub	r3, r3, #4
	sub	r3, r3, #116
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	sub	r2, fp, #20480
	sub	r2, r2, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-2932]
.L10:
	ldr	r3, [fp, #-8]
	add	r2, r3, #1
	sub	r3, fp, #23040
	sub	r3, r3, #4
	sub	r3, r3, #172
	mov	r1, #232
	mul	r2, r1, r2
	add	r2, r2, #160
	add	r3, r3, r2
	add	r2, r3, #2
	sub	r3, fp, #23296
	sub	r3, r3, #4
	sub	r3, r3, #116
	mov	r0, r2
	mov	r1, r3
	bl	strcpy
	sub	r3, fp, #23296
	sub	r3, r3, #4
	sub	r3, r3, #116
	mov	r0, r3
	mov	r1, #50
	ldr	r2, [fp, #-16]
	bl	fgets
	ldr	r0, [fp, #-16]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L11
	b	.L5
.L11:
	sub	r3, fp, #23296
	sub	r3, r3, #4
	sub	r3, r3, #116
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L12
	sub	r3, fp, #23296
	sub	r3, r3, #4
	sub	r3, r3, #116
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	sub	r2, fp, #20480
	sub	r2, r2, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-2932]
.L12:
	ldr	r3, [fp, #-8]
	add	r2, r3, #1
	sub	r3, fp, #23040
	sub	r3, r3, #4
	sub	r3, r3, #172
	mov	r1, #232
	mul	r2, r1, r2
	add	r2, r2, #168
	add	r3, r3, r2
	add	r2, r3, #7
	sub	r3, fp, #23296
	sub	r3, r3, #4
	sub	r3, r3, #116
	mov	r0, r2
	mov	r1, r3
	bl	strcpy
	sub	r3, fp, #23296
	sub	r3, r3, #4
	sub	r3, r3, #116
	mov	r0, r3
	mov	r1, #20
	ldr	r2, [fp, #-16]
	bl	fgets
	sub	r3, fp, #23296
	sub	r3, r3, #4
	sub	r3, r3, #116
	mov	r0, r3
	bl	puts
	ldr	r0, [fp, #-16]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L13
	b	.L5
.L13:
	ldr	r3, [fp, #-8]
	add	r2, r3, #1
	sub	r3, fp, #23040
	sub	r3, r3, #4
	sub	r3, r3, #172
	mov	r1, #232
	mul	r2, r1, r2
	add	r2, r2, #224
	add	r3, r3, r2
	add	lr, r3, #2
	ldr	r3, [fp, #-8]
	add	r2, r3, #1
	sub	r3, fp, #23040
	sub	r3, r3, #4
	sub	r3, r3, #172
	mov	r1, #232
	mul	r2, r1, r2
	add	r2, r2, #224
	add	r3, r3, r2
	add	ip, r3, #4
	ldr	r3, [fp, #-8]
	add	r2, r3, #1
	sub	r3, fp, #23040
	sub	r3, r3, #4
	sub	r3, r3, #172
	mov	r1, #232
	mul	r2, r1, r2
	add	r2, r2, #224
	add	r3, r3, r2
	add	r2, r3, #6
	sub	r3, fp, #23296
	sub	r3, r3, #4
	sub	r3, r3, #116
	str	r2, [sp]
	mov	r0, r3
	ldr	r1, .L28+12
	mov	r2, lr
	mov	r3, ip
	bl	__isoc99_sscanf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L3:
	ldr	r0, [fp, #-16]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L14
.L5:
	ldr	r0, [fp, #-16]
	bl	fclose
.L2:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldr	r0, .L28+16
	mov	r1, r3
	bl	printf
.L24:
	ldr	r0, .L28+20
	bl	puts
	ldr	r0, .L28+24
	bl	puts
	ldr	r0, .L28+28
	bl	puts
	ldr	r0, .L28+32
	bl	puts
	ldr	r0, .L28+36
	bl	puts
	ldr	r0, .L28+40
	bl	puts
	sub	r3, fp, #23296
	sub	r3, r3, #4
	sub	r3, r3, #120
	ldr	r0, .L28+44
	mov	r1, r3
	bl	__isoc99_scanf
	bl	getchar
	sub	r3, fp, #20480
	sub	r3, r3, #4
	ldr	r3, [r3, #-2936]
	cmp	r3, #2
	beq	.L16
	cmp	r3, #3
	beq	.L17
	cmp	r3, #1
	bne	.L15
	ldr	r0, .L28+48
	bl	puts
	ldr	r0, .L28+52
	bl	printf
	ldr	r3, [fp, #-8]
	add	r2, r3, #1
	sub	r3, fp, #23040
	sub	r3, r3, #4
	sub	r3, r3, #172
	mov	r1, #232
	mul	r2, r1, r2
	add	r3, r3, r2
	mov	r0, r3
	bl	gets
	ldr	r0, .L28+56
	bl	printf
	ldr	r3, [fp, #-8]
	add	r2, r3, #1
	sub	r3, fp, #23040
	sub	r3, r3, #4
	sub	r3, r3, #172
	mov	r1, #232
	mul	r2, r1, r2
	add	r2, r2, #80
	add	r3, r3, r2
	add	r3, r3, #1
	mov	r0, r3
	bl	gets
	ldr	r0, .L28+60
	bl	printf
	ldr	r3, [fp, #-8]
	add	r2, r3, #1
	sub	r3, fp, #23040
	sub	r3, r3, #4
	sub	r3, r3, #172
	mov	r1, #232
	mul	r2, r1, r2
	add	r2, r2, #160
	add	r3, r3, r2
	add	r3, r3, #2
	mov	r0, r3
	bl	gets
	ldr	r0, .L28+64
	bl	printf
	ldr	r3, [fp, #-8]
	add	r2, r3, #1
	sub	r3, fp, #23040
	sub	r3, r3, #4
	sub	r3, r3, #172
	mov	r1, #232
	mul	r2, r1, r2
	add	r2, r2, #168
	add	r3, r3, r2
	add	r3, r3, #7
	mov	r0, r3
	bl	gets
	ldr	r0, .L28+68
	bl	printf
	sub	r3, fp, #23296
	sub	r3, r3, #4
	sub	r3, r3, #116
	mov	r0, r3
	bl	gets
	ldr	r3, [fp, #-8]
	add	r2, r3, #1
	sub	r3, fp, #23040
	sub	r3, r3, #4
	sub	r3, r3, #172
	mov	r1, #232
	mul	r2, r1, r2
	add	r2, r2, #224
	add	r3, r3, r2
	add	r2, r3, #2
	sub	r3, fp, #23296
	sub	r3, r3, #4
	sub	r3, r3, #116
	mov	r0, r3
	ldr	r1, .L28+72
	bl	__isoc99_sscanf
	ldr	r0, .L28+76
	bl	printf
	sub	r3, fp, #23296
	sub	r3, r3, #4
	sub	r3, r3, #116
	mov	r0, r3
	bl	gets
	ldr	r3, [fp, #-8]
	add	r2, r3, #1
	sub	r3, fp, #23040
	sub	r3, r3, #4
	sub	r3, r3, #172
	mov	r1, #232
	mul	r2, r1, r2
	add	r2, r2, #224
	add	r3, r3, r2
	add	r2, r3, #4
	sub	r3, fp, #23296
	sub	r3, r3, #4
	sub	r3, r3, #116
	mov	r0, r3
	ldr	r1, .L28+72
	bl	__isoc99_sscanf
	ldr	r0, .L28+80
	bl	printf
	sub	r3, fp, #23296
	sub	r3, r3, #4
	sub	r3, r3, #116
	mov	r0, r3
	bl	gets
	ldr	r3, [fp, #-8]
	add	r2, r3, #1
	sub	r3, fp, #23040
	sub	r3, r3, #4
	sub	r3, r3, #172
	mov	r1, #232
	mul	r2, r1, r2
	add	r2, r2, #224
	add	r3, r3, r2
	add	r2, r3, #6
	sub	r3, fp, #23296
	sub	r3, r3, #4
	sub	r3, r3, #116
	mov	r0, r3
	ldr	r1, .L28+72
	bl	__isoc99_sscanf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L15
.L16:
	ldr	r0, .L28+84
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L19
.L20:
	sub	r3, fp, #23040
	sub	r3, r3, #4
	sub	r3, r3, #172
	ldr	r2, [fp, #-12]
	mov	r1, #232
	mul	r2, r1, r2
	add	r3, r3, r2
	mov	r0, r3
	bl	puts
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L19:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	ble	.L20
	b	.L15
.L17:
	ldr	r0, .L28+88
	bl	printf
	sub	r3, fp, #23296
	sub	r3, r3, #4
	sub	r3, r3, #116
	mov	r0, r3
	bl	gets
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L21
.L23:
	sub	r3, fp, #23040
	sub	r3, r3, #4
	sub	r3, r3, #172
	ldr	r2, [fp, #-12]
	mov	r1, #232
	mul	r2, r1, r2
	add	r2, r3, r2
	sub	r3, fp, #23296
	sub	r3, r3, #4
	sub	r3, r3, #116
	mov	r0, r3
	mov	r1, r2
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L22
	sub	r3, fp, #23040
	sub	r3, r3, #4
	sub	r3, r3, #172
	ldr	r2, [fp, #-12]
	mov	r1, #232
	mul	r2, r1, r2
	add	r3, r3, r2
	mov	r0, r3
	bl	puts
	sub	r3, fp, #23040
	sub	r3, r3, #4
	sub	r3, r3, #172
	ldr	r2, [fp, #-12]
	mov	r1, #232
	mul	r2, r1, r2
	add	r2, r2, #80
	add	r3, r3, r2
	add	r3, r3, #1
	mov	r0, r3
	bl	puts
	sub	r3, fp, #23040
	sub	r3, r3, #4
	sub	r3, r3, #172
	ldr	r2, [fp, #-12]
	mov	r1, #232
	mul	r2, r1, r2
	add	r2, r2, #160
	add	r3, r3, r2
	add	r3, r3, #2
	mov	r0, r3
	bl	puts
	sub	r3, fp, #23040
	sub	r3, r3, #4
	sub	r3, r3, #172
	ldr	r2, [fp, #-12]
	mov	r1, #232
	mul	r2, r1, r2
	add	r2, r2, #168
	add	r3, r3, r2
	add	r3, r3, #7
	mov	r0, r3
	bl	puts
	sub	r3, fp, #20480
	sub	r3, r3, #4
	sub	r3, r3, #2720
	sub	r3, r3, #12
	ldr	r2, [fp, #-12]
	mov	r1, #232
	mul	r2, r1, r2
	add	r2, r2, #224
	add	r3, r3, r2
	ldrh	r3, [r3, #2]
	mov	lr, r3
	sub	r3, fp, #20480
	sub	r3, r3, #4
	sub	r3, r3, #2720
	sub	r3, r3, #12
	ldr	r2, [fp, #-12]
	mov	r1, #232
	mul	r2, r1, r2
	add	r2, r2, #224
	add	r3, r3, r2
	ldrh	r3, [r3, #4]
	mov	ip, r3
	sub	r3, fp, #20480
	sub	r3, r3, #4
	sub	r3, r3, #2720
	sub	r3, r3, #12
	ldr	r2, [fp, #-12]
	mov	r1, #232
	mul	r2, r1, r2
	add	r2, r2, #224
	add	r3, r3, r2
	ldrh	r3, [r3, #6]
	ldr	r0, .L28+92
	mov	r1, lr
	mov	r2, ip
	bl	printf
.L22:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L21:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	ble	.L23
	mov	r0, r0	@ nop
.L15:
	sub	r3, fp, #20480
	sub	r3, r3, #4
	ldr	r3, [r3, #-2936]
	cmp	r3, #0
	bne	.L24
	ldr	r0, .L28
	ldr	r1, .L28+96
	bl	fopen
	str	r0, [fp, #-16]
	ldr	r0, .L28+100
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L25
.L26:
	sub	r3, fp, #23040
	sub	r3, r3, #4
	sub	r3, r3, #172
	ldr	r2, [fp, #-12]
	mov	r1, #232
	mul	r2, r1, r2
	add	r3, r3, r2
	ldr	r0, [fp, #-16]
	ldr	r1, .L28+104
	mov	r2, r3
	bl	fprintf
	sub	r3, fp, #23040
	sub	r3, r3, #4
	sub	r3, r3, #172
	ldr	r2, [fp, #-12]
	mov	r1, #232
	mul	r2, r1, r2
	add	r2, r2, #80
	add	r3, r3, r2
	add	r3, r3, #1
	ldr	r0, [fp, #-16]
	ldr	r1, .L28+104
	mov	r2, r3
	bl	fprintf
	sub	r3, fp, #23040
	sub	r3, r3, #4
	sub	r3, r3, #172
	ldr	r2, [fp, #-12]
	mov	r1, #232
	mul	r2, r1, r2
	add	r2, r2, #160
	add	r3, r3, r2
	add	r3, r3, #2
	ldr	r0, [fp, #-16]
	ldr	r1, .L28+104
	mov	r2, r3
	bl	fprintf
	sub	r3, fp, #23040
	sub	r3, r3, #4
	sub	r3, r3, #172
	ldr	r2, [fp, #-12]
	mov	r1, #232
	mul	r2, r1, r2
	add	r2, r2, #168
	add	r3, r3, r2
	add	r3, r3, #7
	ldr	r0, [fp, #-16]
	ldr	r1, .L28+104
	mov	r2, r3
	bl	fprintf
	sub	r3, fp, #20480
	sub	r3, r3, #4
	sub	r3, r3, #2720
	sub	r3, r3, #12
	ldr	r2, [fp, #-12]
	mov	r1, #232
	mul	r2, r1, r2
	add	r2, r2, #224
	add	r3, r3, r2
	ldrh	r3, [r3, #2]
	mov	lr, r3
	sub	r3, fp, #20480
	sub	r3, r3, #4
	sub	r3, r3, #2720
	sub	r3, r3, #12
	ldr	r2, [fp, #-12]
	mov	r1, #232
	mul	r2, r1, r2
	add	r2, r2, #224
	add	r3, r3, r2
	ldrh	r3, [r3, #4]
	mov	ip, r3
	sub	r3, fp, #20480
	sub	r3, r3, #4
	sub	r3, r3, #2720
	sub	r3, r3, #12
	ldr	r2, [fp, #-12]
	mov	r1, #232
	mul	r2, r1, r2
	add	r2, r2, #224
	add	r3, r3, r2
	ldrh	r3, [r3, #6]
	str	r3, [sp]
	ldr	r0, [fp, #-16]
	ldr	r1, .L28+92
	mov	r2, lr
	mov	r3, ip
	bl	fprintf
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L25:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	ble	.L26
	ldr	r0, [fp, #-16]
	bl	fclose
	ldr	r0, .L28+108
	bl	printf
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	ldmfd	sp!, {fp, pc}
.L29:
	.align	2
.L28:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.size	main, .-main
	.ident	"GCC: (Raspbian 4.9.2-10) 4.9.2"
	.section	.note.GNU-stack,"",%progbits
